package cn.zhoutingrui.pethome.system.dept.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.zhoutingrui.pethome.base.domain.BaseDomain;
import cn.zhoutingrui.pethome.system.emp.domain.Employee;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author ztr
 * @since 2023-01-13
 */
@Data
public class Department extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 部门编号
     */
    private String sn;
    /**
     * 部门名称
     */
    private String name;
    /**
     * 部门的上级分类层级id
     */
    private String dirPath;
    /**
     * 部门状态，0禁用，1启用
     */
    private Integer state;
    /**
     * 部门管理员，关联Employee表id
     */
    private Long managerId;
    /**
     * 上级部门
     */
    private Long parentId;
    private Long shopId;
    private Department parent;
    private Employee manager;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();

}
